import yRequest from "../request"

/**
 * @description: 查询字典列表
 */
export function queryDict(dictType) {
  return yRequest.post("queryDict", "/sys/dict/tree", {"dictTypes": dictType})
}

/**
 * @description: 查询身份信息
 */
export function queryInfo(config) {
  return yRequest.post("queryInfo", "/common/get-person",null,config)
}

/**
 * @description: 查询地区列表
 */
export function queryArea(code) {
  return yRequest.post("queryArea", "/area/list?code="+code, {}, {headers: {"Content-Type":"application/x-www-form-urlencoded"}})
}

/**
 * @description: 上传base64文件
 */
export function uploadBase64(data) {
  return yRequest.post("uploadBase64", "/upload/base64", data)
}

/**
 * @description: 获取技能证书
 */
export function querySkillCert(data) {
  return yRequest.post("querySkillCert", "/common/get/skill/certificate", data)
}

/**
 * 工种
 * @param code
 * @returns {*}
 */
export function queryJobKind(code) {
  return yRequest.post("queryJobKind", "/job/kind/tree", {}, {headers: {"Content-Type":"application/x-www-form-urlencoded"}})
}

/**
 * 名片
 * @param data
 * @returns {*}
 */
export function queryResume(data) {
  return yRequest.post("queryResume", "/resume/list", data)
}

/**
 * 发布零工求职意向
 * @param data
 * @returns {*}
 */
export function publishJob(data) {
  return yRequest.post("publishJob", "/apply/job/publish", data)
}
/**
 * 发布全职求职意向
 * @param data
 * @returns {*}
 */
export function publishQzJob(data) {
  return yRequest.post("publishJob", "/qz/apply/job/publish", data)
}

/**
 * @description: 保存技能证书
 */
export function saveSkillCert(data) {
  return yRequest.post("saveSkillCert", "/certificate/save", data)
}

/**
 * 个人实名认证
 * @param data
 * @returns {*}
 */
export function personRealName(data) {
  return yRequest.post("personRealName", "/common/real/name", data)
}

